package cn.jtfadmin.core.modules.sys.domain.entity;

import cn.jtfadmin.base.data.jpa.domain.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 系统Id 生成方案
 */
@Getter
@Setter
@ToString(callSuper = true)
@Entity
@Table(name = "sys_id_gen")
public class SysIdGenEntity extends BaseEntity {

    /**
     * id分类
     */
    @Column(name = "type", nullable = false, unique = true)
    protected String type;

    /**
     * id数据
     */
    @Column(name = "id_num", nullable = false)
    protected Long idNum;


    /**
     * id分类的描述信息
     */
    @Column(name = "describe_info")
    protected String describeInfo;

}
